<?php
include('includes.php');
include('adminheader.php');

// Setup Table for Page
$crud = new ajaxCRUD('Admin', tAdmins, $pk, $acFolder);

// Guidance for the Crud
$crud->omitPrimaryKey();
$crud->displayAddFormTop();
$crud->disallowEdit('password');
$crud->omitFieldCompletely('hash');
$crud->displayAs('username', 'Username');
$crud->formatFieldWithFunction('password', 'formatAsPw');
$crud->onAddExecuteCallBackFunction('doMyLogicForAdding');

include('adminfooter.php');
